package com.example.cash_register.controller;

import lombok.Getter;

@Getter
public class ErrRedirectException extends RuntimeException{
    private final String error;
    private final String module;
    private final String redirectUrl;

    public ErrRedirectException(String error, String module, String redirectUrl) {
        super();
        this.error = error;
        this.module = module;
        this.redirectUrl = redirectUrl;
    }

    public ErrRedirectException(String error, String module, String redirectUrl, Throwable cause) {
        super(cause);
        this.error = error;
        this.module = module;
        this.redirectUrl = redirectUrl;
    }
}
